package com.book.book.service;

import com.book.book.domain.UsersDO;
import com.book.common.utils.Query;

import java.util.List;
import java.util.Map;

/**
 * 用户信息表
 * 
 * @author siyuan
 * @email 894266364.com
 * @date 2018-01-27 10:53:23
 */
public interface UsersService {
	
	UsersDO get(String openid);
	
	List<UsersDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(UsersDO user);
	
	int update(UsersDO user);
	
	int remove(Integer id);
	
	int batchRemove(Integer[] ids);

	List<UsersDO> listWithName(Map<String, Object> map);

	/***
	 * 根据open id 查询用户
	 * @return
	 */
	UsersDO  getopenid(String openid);
}
